package com.qf.smsplatform.interfaces.config;

import com.qf.smsplatform.common.constants.RabbitMQConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * projectName: smsplatform
 *
 * @author: MaTianWei
 * time: 2021/8/11 22:25
 * description:创建队列,接口模块给策略模块的消息队列
 */
@Configuration
public class RabbitMQConfig {
    //构建的队列
    @Bean
    public Queue preSendQueue(){
        return QueueBuilder.durable(RabbitMQConstants.TOPIC_PRE_SEND).build();
    }
}
